import axios from '@/libs/api.request'
import platform from '@/config/platform'
/**
 * 
 * @param { 通行记录 } 
 * @returns 
 */
// 回显组织
export const lookAccessRecord = id => {
        return axios.request({
            url: platform.BOOKING + `/passRecord/${id}`,
            method: 'get'
        })
    }
    // 车辆类别
export const getAllCarType = (params) => {
        return axios.request({
            url: platform.BOOKING + `/fixed-car/type/all`,
            method: 'get',
            params
        })
    }
    /**
     * @param { 通行单 }
     */
    // 打印
export const doExport = params => {
    return axios.request({
        url: platform.BOOKING + `/bookingCar/export-booking-car-list`,
        method: 'get',
        params,
        responseType: 'blob'
    })
}